﻿    <script src="jquery-1.4.4.js"> </script>
    <script src="json2.js"> </script>

<!-- The data encoding type, enctype, MUST be specified as below -->
<form id='upload' enctype="multipart/form-data" action="upload.php?redirect=1" method="POST">
    <!-- MAX_FILE_SIZE must precede the file input field -->
    <!--input type="hidden" name="MAX_FILE_SIZE" value="300000000" /-->

    Send this file: <input name="file0" type="file" />
    <input type="submit" value="Send File" />
</form>
<script>
    function log(msg){
        console.log(msg);
    };
    $('#upload').submit(function(e){
        log('OK'); 
    });
</script>

